-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Check relocating node id when finding source for reshard recovery #137848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
ea848f2 to
fb03765
Compare
fb03765 to
f7fea19
Compare
|
Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing) |
| sourceShardRouting.relocatingNodeId() | ||
| ); | ||
| } | ||
| return sourceNode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we explicitly return null here and below? It's much easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we exercise this with some deterministic test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, will add
Check the relocating node id when finding the source for reshard split recovery. Not sure if we should default to
currentNodeIdifrelocatingNodeIdexists but the node is unknown